{include file='public/header.html'}
<link href="__STATIC__/cherry/cherry-markdown.min.css" rel="stylesheet">

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" id="sidebar">
            {include file='public/sidebar.html'}
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" id="main">
            <h3 class="page-header">文档历史 </h3>

            <div class="panel panel-default">
                <div class="panel-heading">{$vo.doc_id|get_doc_title} - {$vo.book_id|get_book_name} - v{$vo.ver_int} - {$vo.user_id|get_nickname} <span class="pull-right"><a href="javascript:history.back(-1);">返回</a></span></div>
                <div class="panel-body">
                    {$vo.markdown}
                </div>
                <div class="panel-footer">
                    <a href="javascript:ajaxConfirm('{:url('restore',['id'=>$vo['id']])}','恢复文档',1);"> <i class="glyphicon glyphicon-repeat"></i> 恢复文档</a>
                    ：恢复此文档历史到当前最新版本！！！
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">更变描述</div>
                <div class="panel-body">
                    {$vo.change_desc}
                </div>
                <div class="panel-footer">
                    <a href="javascript:ajaxConfirm('{:url('del',['ids'=>$vo['id']])}','删除',2);"> <i class="glyphicon glyphicon-trash"></i> 删除历史</a>
                    ：删除此历史版本后将再无法恢复！！！
                </div>
            </div>



        </div>
    </div>
</div>
{include file='public/footer.html'}

</body>
</html>